package com.jwds.digital.bios.business.service.service.basic;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwds.digital.bios.business.core.infrastructure.dto.basic.BasicDictReqDTO;
import com.jwds.digital.bios.business.core.infrastructure.dto.basic.BasicOperateLogReqDTO;
import com.jwds.digital.bios.business.core.infrastructure.entity.basic.BasicDict;
import com.jwds.digital.bios.business.core.infrastructure.vo.basic.BasicDictRespVO;
import com.jwds.digital.bios.business.core.infrastructure.vo.basic.BasicOperateLogRespVO;
import com.jwds.tdc.framework.application.lib.page.PageRequest;
import com.jwds.tdc.framework.application.lib.page.PageResponse;

import java.util.List;

/**
 * @Description IBasicDictService
 * @Author xiao  xun
 * @Date 2024-12-07
 */
public interface IBasicDictService extends IService<BasicDict> {
    PageResponse<BasicDictRespVO> page(PageRequest<BasicDictReqDTO> pageRequest);

    /**
     * 树状查询
     * @return
     */
    List<Tree<String>> getTree();

    /**
     * 更新
     * @param reqDto
     */
    void update(BasicDictReqDTO reqDto);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    /**
     * 新增
     * @param reqDto
     */
    void add(BasicDictReqDTO reqDto);
}
